import { http } from "@/utils";
import { makeAutoObservable } from "mobx";

class ChannelStore{
    channelList = [];
 
    constructor() {
        makeAutoObservable(this)
    }

    //加载频道数据
    loadChannelList = async ()=>{
        const res = await http.get('./channels');
        console.log('loadChannelList===>',res);
        this.channelList = res.data.channels;
    }

}

export default ChannelStore;